{php include template("admin/header");}
<!--main-->
<div class="midder">
{php include template("admin/menu");}

<form method="POST" action="{SITE_URL}index.php?app=tbshare&ac=admin&mg=item&ts=edit_do">
<table  cellpadding="0" cellspacing="0">

<tr>
	<td width="100">商品名称：</td>
	<td><input name="title" value="{$item[title]}" size="50" /></td>
</tr>
<tr>
	<td width="100">商品类别：</td>
	<td>
		<select name="cateid" id="cateid">
			<!--{loop $arrCates $key $cate}-->
				<option value="{$cate['cateid']}"
					{if $cate['cateid']	== $item[cateid]}checked{/if}
				>{$cate['catename']}</option>
			<!--{/loop}-->
		</select>
	</td>
</tr>
<tr>
	<td width="100">价格：</td>
	<td><input name="price" value="{php echo sprintf('%.2f',round($item[price] / 100,2))}" size="50" /></td>
</tr>
<tr>
	<td width="100">用户：</td>
	<td>
		{$item['userid']} / {$item['username']}
	</td>
</tr>

<tr>
	<td width="100">分享时间：</td>
	<td>
		{php echo date("m-d",$item['addtime'])}
	</td>
</tr>

<tr>
	<td width="100">网址：</td>
	<td>
		{$item['shareurl']} <a href="{$item['shareurl']}" target="_blank">访问</a>
	</td>
</tr>

<tr>
	<td width="100">淘宝商品ID：</td>
	<td>
		{$item['num_iid']} <a href="http://item.taobao.com/?id={$item['num_iid']}" target="_blank">访问</a>
	</td>
</tr>

<tr>
	<td width="100">淘宝卖家：</td>
	<td>
		{$item['nick']}  
	</td>
</tr>

<tr>
	<td width="100">省市：</td>
	<td>
		{$item['state']} {$item['city']}
	</td>
</tr>

<tr>
	<td width="100">喜欢数：</td>
	<td>
		{$item['favor']}
	</td>
</tr>

<tr>
	<td width="100">评论数：</td>
	<td>
		{$item['comment']}
	</td>
</tr>

<tr><td></td><td>
	<input type="hidden" name="tbshareid" value="{$item[tbshareid]}" />
	<input type="submit" value="修改" />
</td></tr>
</table>
</form>

</div>
{php include template("admin/footer");}